/*
 * @Author: YeMiao 
 * @Date: 2018-02-25 10:43:01 
 * @Last Modified by: YeMiao
 * @Last Modified time: 2018-02-28 15:42:57
 */

import { Component, OnInit } from '@angular/core';

import { UserService } from '../user.service';

@Component({
  selector: 'app-user-log',
  templateUrl: './log.component.html',
  styleUrls: ['./log.component.scss']
})
export class LogComponent implements OnInit {

  
  data = [];
  isLoading = true;

  constructor( 
    private _userService: UserService
   ) {}

  ngOnInit() {
    this._userService.getUserLog().subscribe(res => {
      if(res['code'] == 1){
        this.data = res['data']
        this.isLoading = false;
      }
    })
  }

}
